
function readLines()
{
    var fs = require('fs');
    

}

function readLinesFromtxt(fReadName,callback)
{
    var fs = require('fs');
   
    var readline = require('readline');
    var fRead = fs.createReadStream(fReadName);
    var objReadline = readline.createInterface({
        input:fRead
    });
    var arr = new Array();
    objReadline.on('line',function (line) {
        arr.push(line);
        //console.log('line:'+ line);
    });
    objReadline.on('close',function () {
       // console.log(arr);
      callback(arr);
     //console.log("close evnt");

    });

}

exports.readLinesFromtxt =readLinesFromtxt